//
//  YLRiskAssessmentCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/19.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLRiskAssessmentCell.h"
#import "YLRiskAssessmentModel.h"
@interface YLRiskAssessmentCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end


@implementation YLRiskAssessmentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

+ (NSString *)cellID
{
    return @"YLRiskAssessmentCell";
}

- (void)setModel:(YLRiskAssessmentModel *)model
{
    _model = model;
    _contentLabel.text = model.content;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    if (selected == YES) {
        _icon.image = [UIImage imageNamed:@"RiskAssessmentSelected"];
    } else {
        _icon.image = [UIImage imageNamed:@"RiskAssessmentNoSelected"];
    }
}

@end
